/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tds;

/**
 *
 * @author cwhitela
 */
public class RateLimitStatus {

	protected int remainingHits;
	protected int secondsTilReset;
	protected int hourlyLimit;
	protected String resetTime;
	
	public RateLimitStatus(RateLimitResponse r) {
		this.remainingHits = r.getRemaining_hits();
		this.hourlyLimit = r.getHourly_limit();
		this.secondsTilReset = r.getReset_time_in_seconds();
		this.resetTime = r.getReset_time();
	}

	/**
	 * @return the remaining_hits
	 */ public int getRemainingHits() {
		return remainingHits;
	}

	/**
	 * @param remaining_hits the remaining_hits to set
	 */ public void setRemainingHits(int remaining_hits) {
		this.remainingHits = remaining_hits;
	}

	/**
	 * @return the reset_time_in_seconds
	 */ public long getResetTimeInSeconds() {
		return secondsTilReset;
	}

	/**
	 * @param reset_time_in_seconds the reset_time_in_seconds to set
	 */ public void setResetTimeInSeconds(int reset_time_in_seconds) {
		this.secondsTilReset = reset_time_in_seconds;
	}

	/**
	 * @return the hourly_limit
	 */ public int getHourlyLimit() {
		return hourlyLimit;
	}

	/**
	 * @param hourly_limit the hourly_limit to set
	 */ public void setHourlyLimit(int hourly_limit) {
		this.hourlyLimit = hourly_limit;
	}

	/**
	 * @return the reset_time
	 */ public String getResetTime() {
		return resetTime;
	}

	/**
	 * @param reset_time the reset_time to set
	 */ public void setResetTime(String reset_time) {
		this.resetTime = reset_time;
	}
}
